<template>
    <scroll class="content" ref="scroll">
      <div>
        <cart-list-item v-for="item in cartList" :key="item.iid" :itemInfo="item"></cart-list-item>
      </div>
    </scroll>
</template>

<script>
  import Scroll from '@/components/common/scroll/Scroll'
  import CartListItem from './CartListItem'

	export default {
		name: "CartList",
    components: {
		  Scroll, CartListItem
    },
    props: {
		  cartList: {
		    type: Array,
        default() {
		      return []
        }
      }
    },
    activated() {
		  this.$refs.scroll.refresh()
    }
  }
</script>

<style scoped>
/*.content{
  overflow: hidden;
  position: absolute;
  top: 44px;
  bottom: 49px;
  left: 0;
  right: 0;
  width: 100%;
}*/
</style>
